package app.project.streetlensproject;

import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.LatLng;

import android.os.Bundle;
import android.widget.Toast;
import android.app.Activity;

public class MainActivity extends Activity {

    private GoogleMap map;
    
    public static final LatLng HANOI = new LatLng(20.993776, 105.811417);
    public static final LatLng HOGUOM = new LatLng(21.028667, 105.852148);
    public static final LatLng SETA = new LatLng(21.030814, 105.78602);
    public static final LatLng LUXEHOTEL = new LatLng(21.035961, 105.788355);
    public static final LatLng FPT = new LatLng(21.029151, 105.782222);
		
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		///setContentView(R.layout.activity_home);
		
		double dy = FPT.latitude - SETA.latitude;
		double dx = Math.cos(Math.PI/180*SETA.latitude)*(FPT.longitude - SETA.longitude);
		double angle = Math.atan2(dy, dx);
		Toast.makeText(getBaseContext(), "Angle "+angle, Toast.LENGTH_LONG).show();
	}

}
